package com.eastedu.template.model;

import lombok.Data;

import java.util.List;

/**
 * The type Chart data.
 *
 * @author superman
 */
@Data
public class ChartData {
    /**
     * 名称
     */
    private String name;
    /**
     * 对应的统计分类，SeriesData.Number中长度和顺序一致
     */
    private String[] seriesCategories;
    /**
     * 对应每个分类的统计数据
     */
    private List<SeriesData> seriesDataList;

    /**
     * Instantiates a new Chart data.
     *
     * @param name             the name
     * @param seriesCategories the series categories
     * @param seriesDataList   the series data list
     */
    public ChartData(String name, String[] seriesCategories, List<SeriesData> seriesDataList) {
        this.setName(name);
        this.seriesCategories = seriesCategories;
        this.seriesDataList = seriesDataList;
    }

    /**
     * Instantiates a new Chart data.
     *
     * @param name             the name
     * @param seriesCategories the series categories
     */
    public ChartData(String name, String[] seriesCategories) {
        this.setName(name);
        this.seriesCategories = seriesCategories;
    }
}
